package com.business.file.entity.dto;

/**
 * 图片处理参数
 */
public class ThumbnailsParam {

    /**
     * 压缩后的宽度
     */
    private Integer width;

    /**
     * 压缩后的高度
     */
    private Integer height;

    /**
     * 是否原图 为true 其他参数就无效
     */
    private boolean original;

    /**
     * 图片质量参数
     */
    private Float quality;

    /**
     * 图片缩小倍数
     */
    private Float scale;

    public Integer getWidth() {
        return width;
    }

    public void setWidth(Integer width) {
        this.width = width;
    }

    public Integer getHeight() {
        return height;
    }

    public void setHeight(Integer height) {
        this.height = height;
    }

    public boolean getOriginal() {
        return original;
    }

    public void setOriginal(boolean original) {
        this.original = original;
    }

    public Float getQuality() {
        return quality;
    }

    public void setQuality(Float quality) {
        this.quality = quality;
    }

    public Float getScale() {
        return scale;
    }

    public void setScale(Float scale) {
        this.scale = scale;
    }

    @Override
    public String toString() {
        return "ThumbnailsParam{" +
                "width=" + width +
                ", height=" + height +
                ", original=" + original +
                ", quality=" + quality +
                ", scale=" + scale +
                '}';
    }
}
